@extends('back.index')
@section('link')
    <link href="{{asset('css/back/role.css')}}" rel="stylesheet">
@endsection
@section('mian')
    <div style="font-size:14px;padding:20px;" class="modal-content">
        <h2 class="sub-header power_mian">角色管理列表</h2>
        <h4><a href="{{url('back/addrole')}}">新增角色</a></h4>
        <div class="table-responsive">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>id</th>
                    <th>权限路由</th>
                    <th>权限名称</th>
                    <th>权限描述</th>
                    <th>角色权限</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach($role as $k)
                <tr>
                    <td>{{$k->id}}</td>
                    <td>{{$k->name}}</td>
                    <td>{{$k->display_name}}</td>
                    <td>{{$k->description}}</td>
                    <td>{{$k->perms}}</td>
                    <td><a href="{{url('back/deal/'.$k->id)}}">分配权限</a> &nbsp;<a href="{{url('back/updatarole/'.$k->id)}}">修改</a> &nbsp; <a href="{{url('back/roledelete/'.$k->id)}}">删除</a></td>
                </tr>
                    @endforeach
                </tbody>
            </table>
        </div>
    </div>
    @endsection